Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various improvements #23

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Conversation

khromov
Copy link

@khromov khromov commented Aug 7, 2017

Hello. We needed a similar plugin for our site so I forked yours and made some improvements.

Since I reformatted the code style to use the WordPress official coding guidelines, this PR might be more readable by excluding the whitespace: https://github.com/jaredatch/Disable-Users/pull/23/files?w=1

Changelog:

= 2.0 =

* Add multisite compatibility
* Add enable/disable links from user lists
* Use better hook for user login checking (supports XML-RPC)
* Add Swedish translation
* Reformat code to WordPress official code style

Multisite was currently not supported properly because it allowed any admin for a single site to disable users across the entire network. This is adressed by only allowing super admins this possibility on multisite.

Screenshot of new UI option:
screen shot 2017-08-07 at 12 46 26

As for changing how the logged in status is stored (from a string 0 or 1 to a boolean), WP handles it the same way internally so it's backwards compatible.

Let me know if there is anything you want me to change or if you have any questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant